package com.bw.service;

import com.bw.bean.User;
import com.bw.dao.UserDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class UserServiceImp implements UserService {
    @Resource
    private UserDao dao;

    @Resource
    private UserDao userDao;
    @Override
    public List list(Map map) {
        return userDao.list(map);
    }

    @Override
    public List citylist(Integer pid) {
        return userDao.citylist(pid);
    }

    @Override
    public User login(User user) {
        return userDao.login(user);
    }

    @Override
    public int add(User user) {
        return userDao.add(user);
    }


}